<extend name="Public:base" />
<block name="content">
<div id="primary" class="inner group">
    <div id="respond"  style="float:left;width:600px;position:relative;left:100px" >
		<h3 id="reply-title">用户个人中心</h3>
		
		<form id="form" target='zi' method="post" enctype="multipart/form-data" action="/home/login/login/upload">		
			<input type="hidden" name="id" value="{$res['id']}"/>
			<p class="comment-form-author">
                <label for="author">用户名</label> 
                <input type="text" aria-required="true" size="30" value="{$res['name']}" readonly name="username" id="username"><span style="color:red"></span>
            </p>

            <p class="comment-form-author">
                <label for="author">性别</label> 
                <input style="width:50px" type="radio" aria-required="true" size="10" value="1"  name="sex" id="sex" <if condition="($res['sex'] eq '1')"> checked </if>>男<input style="width:50px" type="radio" aria-required="true" size="10" value="0"  name="sex" id="sex" <if condition="($res['sex'] eq '0')"> checked </if>>女<span style="color:red"></span>
            </p>
            <p class="comment-form-author">
                <label for="author">年龄</label> 
                <input type="text" aria-required="true" size="30" value="{$res['age']}"  name="age" id="age"><span style="color:red"></span>
            </p>
            <p class="comment-form-author">
                <label for="author">手机</label> 
                <input type="text" aria-required="true" size="30" value="{$res['phone']}"  name="phone" id="phone"><span style="color:red"></span>
            </p>
			<p class="comment-form-author">
                <label for="author">爱好</label> 
                <input type="text" aria-required="true" size="30" value="{$res['hobby']}"  name="hobby" id="hobby"><span style="color:red"></span>
            </p>
			<p class="comment-form-author">
                <label for="author">邮箱</label> 
                <input type="text" aria-required="true" size="30" value="{$res['email']}"  name="email" id="email"><span style="color:red"></span>
            </p>
			<p class="comment-form-author">
                <label for="author">博客</label> 
                <input type="text" aria-required="true" size="30" value="{$res['blog']}"  name="blog" id="blog"><span style="color:red"></span>
            </p>
			<p class="comment-form-author">
                <label for="author">简介</label> 
                <input type="text" aria-required="true" size="30" value="{$res['introduce']}"  name="introduce" id="introduce"><span style="color:red"></span>
            </p>
            <p class="comment-form-author">
                <label info="pic" for="author">用户头像</label> 
                <input style="border:0px;display:none;" type="file" id="file" aria-required="true" size="30" value="" name="pic" id="pic"><span style="color:red;cursor:pointer;"><img name="pic" style="width:170px;height:170px" src="{$res['pic']}"></span>
            </p>					
		
        
            <p class="form-submit">
                <input type="submit" value="修改" id="submit" name="submit">
            </p>
			
			<div class="clear"></div>
		
		</form>
	</div>
	<iframe style="display:none" src="" frameborder="0" name='zi'></iframe>
</div>
<script type="text/javascript">
	var fun=function(flag){		
		$('img[name="pic"]').attr('src',flag);
	};
	$('img[name="pic"]').click(function(){
		$('#file').click();
		// $(window).mouseover(function(){
		// // alert($('#file').val());
		// $('img[name="pic"]').attr('src',$('#file').val());
	// });
	});
	
	</script>
</block>